package stud.aistar.util;

import com.github.pagehelper.PageInfo;

/**
 * *
 *
 * @ClassName :wangyu
 * @Description
 * @Author
 * @Date2019/10/7 14:36
 * @Version V1.0
 */
public class LayuiPage<T> {
    private int code;

    private String message;

    private int count;

    private PageInfo<T> data;

    public LayuiPage() {
    }

    public LayuiPage(int code, String message, int count, PageInfo<T> data) {
        this.code = code;
        this.message = message;
        this.count = count;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public PageInfo<T> getData() {
        return data;
    }

    public void setData(PageInfo<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "LayuiPage{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
